# _*_ coding utf-8 _*_
# george
# time: 2025/1/8下午2:12
# name: exts.py
# comment: 插件管理

# 导包
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate

# 初始化
db = SQLAlchemy()  # ORM
migrate = Migrate()  # 数据迁移


# 和app对象绑定
def init_exts(app):
    db.init_app(app=app)
    migrate.init_app(app=app, db=db)
